package com.zxx.pattern.interpretPattern.interpret;

/**
 * 除法
 * @author zxx on 2021/2/24
 */
public class DivNode extends SymbolNode {

    public DivNode(Node left, Node right) {
        super(left, right);
    }

    @Override
    public int interpret() {
        return super.left.interpret() / super.right.interpret();
    }
}
